<p>
    Test for <i><a href="rdar://problem/6472150">rdar://problem/6472150</a> repro crash in LayoutBlockFlow::rightmostPosition(bool, bool) const at mercotte.fr using menus</i>.
</p>
<p>
    The test passes if it does not crash.
</p>
<div>
    <div></div><span style="position: relative;"><div id="target" style="display: none;"></div><div id="positioned" style="position: absolute;"></div>
</div>
<script>
    function test()
    {
        document.getElementById("target").style.display = "block";
        document.getElementById("positioned").style.display = "none";
    }
    if (window.testRunner)
        testRunner.dumpAsText();

    document.body.offsetTop;
    test();
</script>
